package com.cnswhy.cloud.server.core.dto;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-09-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SpreadLogUpdateDTO", description = "")
public class SpreadLogUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long id;
    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long customerId;
    @ApiModelProperty(value = "")
    @Length(max = 11, message = "长度不能超过11")
    private String mobile;
    @ApiModelProperty(value = "")
    private BigDecimal amount;
    /**
     * 1爱心收益2贡献收益3拼团收益4订单回购5爱心收益转余额6贡献收益转余额7拼团收益转余额8分享红包9分享红包转余额10拼购券转余额
     */
    @ApiModelProperty(value = "1爱心收益2贡献收益3拼团收益4订单回购5爱心收益转余额6贡献收益转余额7拼团收益转余额8分享红包9分享红包转余额10拼购券转余额")
    private Integer type;
    @ApiModelProperty(value = "")
    @Length(max = 50, message = "长度不能超过50")
    private String orderNum;
    @ApiModelProperty(value = "")
    private Long shareCustomerId;
    @ApiModelProperty(value = "")
    @Length(max = 11, message = "长度不能超过11")
    private String shareMobile;
    @ApiModelProperty(value = "")
    private LocalDateTime createDate;
    @ApiModelProperty(value = "")
    private BigDecimal balance;
}
